﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeBehind="RservacionesView.aspx.cs" Inherits="Recursos.View.RservacionView" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            height: 64px;
        }
        .style5
        {
            height: 62px;
        }
        .style6
        {
            height: 88px;
        }
        .style11
        {
            width: 265px;
            height: 31px;
        }
        .style12
        {
            width: 98px;
            height: 31px;
        }
        .style13
        {
            height: 31px;
        }
        .style14
        {
            height: 97px;
        }
        .style15
        {
            height: 86px;
        }
        .style16
        {
            width: 81px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width: 1191px">
    <tr><td class="style1"><h2>Crear nueva reservación de curso</h2></td></tr>
    <tr>
        <td>
            <table>
                <tr><td class="style12" align="center">Sede </td><td class="style13">

         <asp:DropDownList ID="DropDownListSedes" runat="server" AutoPostBack="True" 
                onselectedindexchanged="DropDownListSedes_SelectedIndexChanged">
    </asp:DropDownList> </td></tr>
                <tr><td class="style12" align="center">Año </td><td class="style13">
        <asp:TextBox ID="txtaño" runat="server" AutoPostBack="True" 
                        ontextchanged="txtaño_TextChanged"></asp:TextBox>
        <td class="style11">
         <asp:CompareValidator ID="cv" runat="server" ControlToValidate="txtaño" Type="Integer" ForeColor="red"
   Operator="DataTypeCheck" ErrorMessage="El año debe ser numero entero. " />
   













                    </td>
                    </td><td class="style13">Hora Inicio </td><td class="style13">
        <asp:DropDownList ID="DropDownListHoraInicio" runat="server" Height="19px" 
                Width="80px">
            <asp:ListItem>07:30</asp:ListItem>
            <asp:ListItem>08:30</asp:ListItem>
            <asp:ListItem>09:30</asp:ListItem>
            <asp:ListItem>10:30</asp:ListItem>
            <asp:ListItem>11:30</asp:ListItem>
            <asp:ListItem>14:00</asp:ListItem>
            <asp:ListItem>13:00</asp:ListItem>
            <asp:ListItem>16:00</asp:ListItem>
            <asp:ListItem>15:00</asp:ListItem>
            <asp:ListItem>18:00</asp:ListItem>
            <asp:ListItem>17:00</asp:ListItem>
            <asp:ListItem>21:00</asp:ListItem>
            <asp:ListItem>19:00</asp:ListItem>
        </asp:DropDownList>
                    </td><td class="style13"></td></tr>
                <tr><td class="style12" align="center">Modalidad </td><td class="style13">
        <asp:DropDownList ID="DropDownListModalidad" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="DropDownListModalidad_SelectedIndexChanged">
        </asp:DropDownList>
                    <td class="style11"></td></td><td class="style13">Hora Final </td>
                    <td class="style13">
           <asp:DropDownList ID="DropDownListHoraFinal" runat="server" Height="18px" 
                Width="78px">
            <asp:ListItem>08:20</asp:ListItem>
            <asp:ListItem>09:20</asp:ListItem>
            <asp:ListItem>10:20</asp:ListItem>
            <asp:ListItem>11:20</asp:ListItem>
            <asp:ListItem>12:20</asp:ListItem>
            <asp:ListItem>13:50</asp:ListItem>
            <asp:ListItem>14:50</asp:ListItem>
            <asp:ListItem>15:50</asp:ListItem>
            <asp:ListItem>16:50</asp:ListItem>
            <asp:ListItem>17:50</asp:ListItem>
            <asp:ListItem>18:50</asp:ListItem>
            <asp:ListItem>19:50</asp:ListItem>
               <asp:ListItem>20:50</asp:ListItem>
               <asp:ListItem>21:50</asp:ListItem>
        </asp:DropDownList>
                    </td><td class="style13">
            <asp:Label ID="lblhoras" runat="server" ForeColor="Red" 
                Text="La hora final debe ser mayor a la inicial" 
    Visible="False"></asp:Label>
                    </td></tr>
                <tr><td class="style12" align="center">Período</td><td class="style13"><asp:DropDownList ID="DropDownListPeriodo" 
            runat="server" AutoPostBack="True" 
                        onselectedindexchanged="DropDownListPeriodo_SelectedIndexChanged">
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
                <asp:ListItem>6</asp:ListItem>
                <asp:ListItem>7</asp:ListItem>
                <asp:ListItem>8</asp:ListItem>
                <asp:ListItem>9</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                <asp:ListItem>12</asp:ListItem>
        </asp:DropDownList>
                    </td></tr>
            </table>
        </td>
    </tr>
    <tr><td align="center" class="style14">
        <asp:Button ID="Button1" runat="server" Text="Mostrar Espacios" onclick="Button1_Click" 
           />
            <br />
        <br />
        <br />
       <asp:Label ID="Label2" runat="server" Text="Reservaciones de cursos"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Text="__________"></asp:Label>
            &nbsp;<asp:Label ID="Label3" runat="server" Text="Reservaciones particulares"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        <asp:Label ID="Label4" runat="server" Text="__________"></asp:Label>
        &nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label5" runat="server" Text="Espacios libres"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        <asp:Label ID="Label6" runat="server" Text="__________"></asp:Label>
            <br />
        <br />
        <br />
        <br />
            </td>
    </td></tr>
    <tr><td>   
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
   
        <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                 Height="500px" onactivetabchanged="TabContainer1_ActiveTabChanged">
           
          
        </cc1:TabContainer>
        </td>
    </tr>
    <tr>
        <td align="center" class="style15">
            <table>
                <tr><td class="style16">
            <asp:CheckBox ID="cblunes" runat="server" Text="Lunes" />
                    </td><td  class="style16">
            <asp:CheckBox ID="cbmartes" runat="server" Text="Martes" />
                    </td><td  class="style16">
            <asp:CheckBox ID="cbmiercoles" runat="server" Text="Miércoles" />
                    </td><td  class="style16">
            <asp:CheckBox ID="cbjueves" runat="server" Text="Jueves" />
                    </td><td  class="style16">
            <asp:CheckBox ID="cbviernes" runat="server" Text="Viernes" />
                    </td><td  class="style16">
            <asp:CheckBox ID="cbsabado" runat="server" Text="Sábado" />
                    </td></tr>
            </table>
        </td>
    </tr>
    <tr>
        <td align="center" class="style5">
            <table>
                <tr><td class="style13">Profesor&nbsp; </td><td class="style13"><asp:DropDownList 
                ID="DropDownListProfesor" runat="server">
            </asp:DropDownList></td></tr>
                <tr><td class="style13">Curso </td><td class="style13">
        <asp:DropDownList ID="DropDownListCurso" runat="server">
        </asp:DropDownList></td></tr>
            </table>
        </td>
    </tr>
    <tr>
    <td align="center" class="style6">
        <asp:Button ID="btnreservar" runat="server" Text="Reservar" onclick="Reservar" 
                Enabled="False" />
        </td>
    </tr>
    </table>
</asp:Content>
